Skip to content

fix(egress): answer browser dials when audit is required - #70

Merged
senamakel merged 3 commits into
mainfrom
browser-dial-under-required-audit
Nov 14, 2026
Merged

senamakel merged 3 commits into
mainfrom
browser-dial-under-required-audit

Conversation

@senamakel

Copy link
Copy Markdown
Member

Problem

OpenHuman loads TinySecurity as its secret authority, and that configuration makes audit required (module_config_for_secret_authority sets audit.required = true). Under required audit, require_unbound_permission refuses every permission member that carries no audit correlation, and AuthorizeBrowserDial, ConsumeBrowserDial and ValidateBrowserDial call it. They have no audited variant and no correlation to carry, so every browser dial is refused with required audit needs bound permission. TinyComputer's egress proxy then fails the CONNECT, and Chrome reports net::ERR_TUNNEL_CONNECTION_FAILED on every page.

Reproduced on a teeny-spine built from OpenHuman's current pin (tinysecurity 0.21.0): a browser task opening https://example.com/ fails with ERR_TUNNEL_CONNECTION_FAILED, and the core's debug log shows [security] module call failed: ... required audit needs bound permission at the dial.

Fix

The three browser dial members no longer call require_unbound_permission. A dial carries no payload, the proxy opens one per connection with no agent turn behind it to bind a durable event to, and the member only applies the destination rules (address floor, DNS pinning, one-use grant, lease) of a policy the authenticated host registered. Every other permission member keeps the required-audit refusal.

Test

browser_dials_are_authorized_when_audit_is_required runs the browser dial contract (authorize, consume once, validate, refuse a replay) against a service whose audit is required. It failed before the fix with required audit needs bound permission and passes after. cargo test -p tinysecurity-module: 208 passed.

senamakel and others added 3 commits November 13, 2026 23:55
Add a regression test asserting that browser dials, which carry no audit correlation, are still authorized, consumed and validated when the host requires audit. Without this, every browser navigation was refused with "required audit needs bound permission".

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The three browser dial members no longer call require_unbound_permission, so they answer even when audit is required. A dial carries no payload or host audit correlation and only applies destination rules of a policy the authenticated host registered, so refusing it broke every page of a host using this module as its secret authority.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@tinysweeper

tinysweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown

Tiny Sweeper review

⏳ Reviewing 4c174257e087 now. The last completed report, when available, remains below until this pass finishes.

@senamakel
senamakel merged commit 7ca20f3 into main Nov 14, 2026
11 of 17 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T00:01:21.858501Z 4c17425 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant